package com.IntelligentCommunity.deploy.mapper;

import com.IntelligentCommunity.deploy.domain.DeployTaskFace;
import com.IntelligentCommunity.deploy.domain.vo.DeployTaskFaceVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 抓拍任务Mapper接口
 *
 * @author kwzjx
 * @date 2024-07-23
 */
public interface DeployTaskFaceMapper extends BaseMapper<DeployTaskFace>
{
    /**
     * 查询抓拍任务
     *
     * @param id 抓拍任务主键
     * @return 抓拍任务
     */
    public DeployTaskFace selectDeployTaskFaceById(Long id);

    /**
     * 查询抓拍任务列表
     *
     * @param deployTaskFace 抓拍任务
     * @return 抓拍任务集合
     */
    public List<DeployTaskFace> selectDeployTaskFaceList(DeployTaskFace deployTaskFace);

    /**
     * 新增抓拍任务
     *
     * @param deployTaskFace 抓拍任务
     * @return 结果
     */
    public int insertDeployTaskFace(DeployTaskFace deployTaskFace);

    /**
     * 修改抓拍任务
     *
     * @param deployTaskFace 抓拍任务
     * @return 结果
     */
    public int updateDeployTaskFace(DeployTaskFace deployTaskFace);

    /**
     * 删除抓拍任务
     *
     * @param id 抓拍任务主键
     * @return 结果
     */
    public int deleteDeployTaskFaceById(Long id);

    /**
     * 批量删除抓拍任务
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeployTaskFaceByIds(Long[] ids);

    List<DeployTaskFaceVO> selectDeployTaskFaceVOList(@Param("deployTaskFace") DeployTaskFace deployTaskFace,
                                                      @Param("ids") List<Long> ids,
                                                      @Param("populationName") String populationName,
                                                      @Param("idCardNumber") String idCardNumber);

    void pauseOrStart(@Param("ids") List<Long> ids, @Param("status") Integer status);

    List<DeployTaskFace> getAllNotStartTask();

    String selectTaskImagesById(Long id);

    DeployTaskFaceVO selectDeployTaskDetailById(Long id);

    List<Long> getAllStartTaskId();

    List<Long> getPopulationTaskId();

    void insertRePopulationTask(@Param("taskId") Long taskId, @Param("populationId") Long populationId);

    DeployTaskFaceVO selectdeployTaskPopulationInfoById(Long id);

    void startTimeUpButNotStartTask();
}
